InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which is the stored program associated with a schedule?(a) Trigger(b) Event(c) Stored function(d) Stored procedureThe question was asked in unit test.The question is from Setting Up Replication Servers topic in division Database Maintenance, Backups and Replication of MySQL |
|
Answer» Right choice is (B) Event |
|
| 2. |
In which directory are the DBI scripts located?(a) cgi-inc(b) cgi-bin(c) cgi-usr(d) cgi-perlThe question was posed to me in exam.Query is from Setting Up Replication Servers in portion Database Maintenance, Backups and Replication of MySQL |
|
Answer» The correct choice is (b) cgi-bin |
|
| 3. |
PHP scripts are located in the web client document tree.(a) True(b) FalseI have been asked this question during an interview.The doubt is from Setting Up Replication Servers topic in division Database Maintenance, Backups and Replication of MySQL |
|
Answer» RIGHT choice is (b) False For explanation: The PHP scripts are different from DBI scripts since PHP scripts are located within the web SERVER document TREE while DBI scripts are located in a cgi-bin directory located OUTSIDE of document tree. |
|
| 4. |
In which context is the privilege ‘CREATE TABLESPACE’ applied?(a) Server administration(b) Tables(c) Stored routines(d) ViewsI had been asked this question in quiz.My enquiry is from Setting Up Replication Servers topic in division Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct answer is (a) Server ADMINISTRATION |
|
| 5. |
MySQL Enterprise Backup records details of each backup in _____________(a) history_backup(b) backup_history(c) backlog_history(d) history_backlogThis question was posed to me in an interview.This question is from Setting Up Replication Servers topic in chapter Database Maintenance, Backups and Replication of MySQL |
|
Answer» Right OPTION is (B) backup_history |
|
| 6. |
Which statement suspends the replication related activity of the slave server?(a) RESUME SLAVE(b) START SLAVE(c) STOP SLAVE(d) GET SLAVEI got this question by my school teacher while I was bunking the class.My question is taken from Setting Up Replication Servers topic in section Database Maintenance, Backups and Replication of MySQL |
|
Answer» CORRECT option is (c) STOP SLAVE The EXPLANATION is: The ‘STOP SLAVE’ and ‘START SLAVE’ statements SUSPEND and resume the replication-related activity of a slave server. These statements are useful for telling the slave to be quiescent. |
|
| 7. |
Which statement on the master expires binary log files?(a) SHOW SLAVE STATUS(b) PURGE MASTER(c) PURGE SLAVE(d) SHOW MASTER STATUSThe question was posed to me during an internship interview.I'm obligated to ask this question of Setting Up Replication Servers in chapter Database Maintenance, Backups and Replication of MySQL |
|
Answer» Right CHOICE is (B) PURGE MASTER |
|
| 8. |
The slave stores the CHANGE MASTER parameters in the file _____________(a) slave.info(b) slave.inf(c) master.info(d) master.infI have been asked this question in an interview for internship.My question is based upon Setting Up Replication Servers topic in division Database Maintenance, Backups and Replication of MySQL |
|
Answer» Right option is (c) MASTER.info |
|
| 9. |
What is the default size of ‘max_binlog_cache_size’ system variable?(a) 1 GB(b) 2 GB(c) 4 GB(d) 8 GBThe question was posed to me in an online quiz.This intriguing question comes from Using Backups for Data Recovery in division Database Maintenance, Backups and Replication of MySQL |
|
Answer» Right option is (c) 4 GB |
|
| 10. |
The metadata log is _______________(a) error log(b) ddl log(c) binary log(d) relay logI have been asked this question during an interview.My question is based upon Using Backups for Data Recovery topic in division Database Maintenance, Backups and Replication of MySQL |
|
Answer» Right answer is (b) DDL log |
|
| 11. |
What is the log in which data changes received from a replication master server are written?(a) error log(b) general query log(c) binary log(d) relay logThis question was posed to me in an interview.Origin of the question is Using Backups for Data Recovery topic in chapter Database Maintenance, Backups and Replication of MySQL |
|
Answer» CORRECT choice is (d) relay log Explanation: The Relay Log has the data CHANGES received from a replication master server written in it. The PROBLEMS encountered during the starting, RUNNING or STOPPING of ‘mysqld’ is written in error log. |
|
| 12. |
Multiple MySQL servers can be run on the same machine.(a) True(b) FalseI have been asked this question in class test.This is a very interesting question from Using Backups for Data Recovery topic in division Database Maintenance, Backups and Replication of MySQL |
|
Answer» RIGHT choice is (b) False The best explanation: It is useful to run multiple SERVERS on the same machine under certain circumstances. A new MySQL RELEASE can ALSO be tested while leaving the CURRENT production server in place. |
|
| 13. |
The MySQL server is not configurable.(a) True(b) FalseThe question was asked in an international level competition.The origin of the question is Using Backups for Data Recovery topic in chapter Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct OPTION is (b) False |
|
| 14. |
Where does MySQL Enterprise Backup record details of each backup?(a) history_backup(b) backup_history(c) backlog_history(d) history_backlogThe question was posed to me in unit test.Question is taken from Using Backups for Data Recovery in division Database Maintenance, Backups and Replication of MySQL |
|
Answer» CORRECT option is (B) backup_history To explain I would say: The restored DATA includes the ‘backup_history’ table, where ‘MySQL Enterprise Backup’ records details of each backup. The table ALLOWS to PERFORM future incremental backups using ‘–incremental-base=history:last_backup’. |
|
| 15. |
The myisamchk variable that represents the size of buffer used to hold index blocks is _____________(a) key_buffer_size(b) read_buffer_size(c) sort_buffer_size(d) write_buffer_sizeThe question was posed to me during an online exam.My query is from Using Backups for Data Recovery in division Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct OPTION is (a) key_buffer_size |
|
| 16. |
The ‘mysqlbackup’ command to perform a restore operation is _____________(a) copy-back-and-apply-log(b) apply-log-and-copy-back(c) copy-log-and-apply-back(d) apply-back-and-copy-logI got this question in an online quiz.This interesting question is from Using Backups for Data Recovery topic in chapter Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct option is (a) copy-back-and-apply-log |
|
| 17. |
Which program converts binary log files to statements in text form?(a) mysqldump(b) mysqllog(c) mysqlbin(d) mysqlbinlogThis question was posed to me in unit test.My question comes from Using Backups for Data Recovery in chapter Database Maintenance, Backups and Replication of MySQL |
|
Answer» Right option is (d) mysqlbinlog |
|
| 18. |
Which data type is best suited to store currency values?(a) INT(b) FLOAT(c) DOUBLE(d) DECIMALI have been asked this question in homework.Question is taken from Checking and Repairing Database Tables topic in chapter Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct answer is (d) DECIMAL |
|
| 19. |
What are PHP variables preceded by?(a) _(b) @(c) $(d) &I had been asked this question in a job interview.My question comes from Checking and Repairing Database Tables in portion Database Maintenance, Backups and Replication of MySQL |
|
Answer» Right choice is (C) $ |
|
| 20. |
What is the output from PHP?(a) statically generated(b) dynamically generated(c) not generated(d) no outputI have been asked this question in a job interview.My enquiry is from Checking and Repairing Database Tables topic in division Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct option is (B) dynamically generated |
|
| 21. |
The place where the server stores its databases and status files are the database directory.(a) True(b) FalseI have been asked this question during an interview.I would like to ask this question from Checking and Repairing Database Tables in portion Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct CHOICE is (b) False |
|
| 22. |
Which option is used in ‘mysqldump’ to make all tables in the destination databases to use a different storage engine?(a) –next-storage-engine(b) –new-storage-engine(c) –clear-storage-engine(d) –get-storage-engineThe question was asked during an interview for a job.My question is based upon Checking and Repairing Database Tables in section Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct OPTION is (b) –new-storage-engine |
|
| 23. |
Which myisamchk variable represents the size of buffer used to hold index blocks?(a) key_buffer_size(b) read_buffer_size(c) sort_buffer_size(d) write_buffer_sizeThe question was asked during an interview.The doubt is from Checking and Repairing Database Tables in division Database Maintenance, Backups and Replication of MySQL |
|
Answer» The CORRECT choice is (a) key_buffer_size |
|
| 24. |
Which is the log in which data changes received from a replication master server are written?(a) error log(b) general query log(c) binary log(d) relay logThe question was posed to me during an interview.The origin of the question is Copying Databases to Another Server topic in chapter Database Maintenance, Backups and Replication of MySQL |
|
Answer» Right ANSWER is (d) relay log |
|
| 25. |
Multiple MySQL servers can be easily run on the same machine.(a) True(b) FalseThis question was addressed to me during an interview for a job.Query is from Copying Databases to Another Server topic in portion Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct answer is (b) False |
|
| 26. |
The MySQL server is poorly configurable.(a) True(b) FalseThis question was posed to me in an online interview.This interesting question is from Copying Databases to Another Server in portion Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct choice is (b) False |
|
| 27. |
Which function returns reference to array of row values?(a) fetchrow_array()(b) fetchrow_arrayref()(c) fetch()(d) fetchrow_hashref()The question was posed to me in class test.Question is taken from Copying Databases to Another Server in section Database Maintenance, Backups and Replication of MySQL |
|
Answer» Right choice is (b) fetchrow_arrayref() |
|
| 28. |
The function ‘fetchrow_hashref()’ returns reference to hash of row values keyed by ______________(a) row name(b) column name(c) table name(d) database nameThis question was posed to me in quiz.My doubt is from Copying Databases to Another Server in chapter Database Maintenance, Backups and Replication of MySQL |
|
Answer» RIGHT answer is (B) column NAME Easy explanation: The function ‘fetchrow_hashref()’ RETURNS reference to hash of row values, KEYED by the column name. The function ‘fetchrow_arrayref()’ returns a reference to an array of row values. |
|
| 29. |
Which function returns reference to hash of row values?(a) fetchrow_array()(b) fetchrow_arrayref()(c) fetch()(d) fetchrow_hashref()I have been asked this question by my college professor while I was bunking the class.My doubt is from Copying Databases to Another Server in section Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct ANSWER is (d) fetchrow_hashref() |
|
| 30. |
In ‘mysqldump’ which option is used to make all tables in the destination databases to use a different storage engine?(a) –next-storage-engine(b) –new-storage-engine(c) –clear-storage-engine(d) –get-storage-engineThe question was asked in quiz.This intriguing question comes from Copying Databases to Another Server in section Database Maintenance, Backups and Replication of MySQL |
|
Answer» The CORRECT answer is (b) –new-STORAGE-engine |
|
| 31. |
The program that performs logical backups is _____________(a) mysqlimport(b) mysqldump(c) myslqpit(d) mysqllogicThis question was addressed to me in unit test.Question is taken from Copying Databases to Another Server in chapter Database Maintenance, Backups and Replication of MySQL |
|
Answer» The correct choice is (b) mysqldump |
|
| 32. |
To use ‘mysqldbcopy’ which privileges are required on the source server?(a) CREATE(b) INSERT(c) UPDATE(d) SELECTI had been asked this question in an interview.My query is from Copying Databases to Another Server in chapter Database Maintenance, Backups and Replication of MySQL |
|
Answer» Right choice is (d) SELECT |
|
| 33. |
Which program copies the databases from one server to another?(a) mysqldbcopy(b) mysqlcopydb(c) mysqlflushdb(d) mysqldbflushThe question was posed to me during an interview.I'm obligated to ask this question of Copying Databases to Another Server in chapter Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct answer is (a) mysqldbcopy |
|
| 34. |
The place where the server stores its databases and status files are called the data directory.(a) True(b) FalseI got this question in an interview.Asked question is from Making Database Backups topic in division Database Maintenance, Backups and Replication of MySQL |
|
Answer» Right choice is (a) True |
|
| 35. |
What is the hub of a MySQL installation?(a) mysqla(b) mysqlb(c) mysqlc(d) mysqldThe question was posed to me in an interview.Question is from Making Database Backups in portion Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct option is (d) mysqld |
|
| 36. |
The mode of search in which the search string is parsed into words and the search looks for rows is ________________(a) Boolean mode(b) Natural language(c) Query expansion(d) Cross modeI got this question in an interview for internship.This is a very interesting question from Making Database Backups topic in portion Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct choice is (b) NATURAL language |
|
| 37. |
Functions are called and pointers to structures are used while using DBI API.(a) True(b) FalseI had been asked this question in an internship interview.Question is taken from Making Database Backups in division Database Maintenance, Backups and Replication of MySQL |
|
Answer» The correct option is (a) True |
|
| 38. |
What is the return value from operations returning a row count?(a) $rc(b) $rv(c) $rows(d) $aryI had been asked this question in an online interview.This interesting question is from Making Database Backups topic in division Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct answer is (c) $rows |
|
| 39. |
The option that suppresses output unless there are errors in the table is _____________(a) –silent(b) –wild(c) –suppress(d) –nooutI got this question during an online exam.Question is from Making Database Backups topic in portion Database Maintenance, Backups and Replication of MySQL |
|
Answer» Right option is (a) –silent |
|
| 40. |
Which program performs logical backups?(a) mysqlimport(b) mysqldump(c) myslqpit(d) mysqllogicI have been asked this question by my college professor while I was bunking the class.My question is taken from Making Database Backups topic in section Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct option is (b) MYSQLDUMP |
|
| 41. |
How is a delimited-text data file reloaded?(a) mysqlexport(b) mysqlimport(c) mysqlexpand(d) mysqltransferI had been asked this question in an online interview.I'm obligated to ask this question of Making Database Backups topic in portion Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct answer is (b) mysqlimport |
|
| 42. |
How is the binary log rotated?(a) FLUSH LOGS(b) ROTATE LOGS(c) FLUSH BINLOG(d) ROTATE BINLOGI have been asked this question in semester exam.Question is taken from Making Database Backups topic in chapter Database Maintenance, Backups and Replication of MySQL |
|
Answer» The correct answer is (a) FLUSH LOGS |
|
| 43. |
Which operator is used to access property of an object in PHP?(a) .(b) *(c) ->(d) @I had been asked this question in homework.I need to ask this question from General Preventative Maintenance topic in chapter Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct CHOICE is (c) -> |
|
| 44. |
Arrays can have associative indices in PHP.(a) True(b) FalseThe question was posed to me in unit test.I would like to ask this question from General Preventative Maintenance in section Database Maintenance, Backups and Replication of MySQL |
|
Answer» The correct CHOICE is (a) True |
|
| 45. |
In PHP, how is the first element accessed if $a represents an array with numeric indices?(a) $a[1](b) $a[0](c) $a.1(d) $a.0This question was posed to me in an interview for internship.My question comes from General Preventative Maintenance topic in section Database Maintenance, Backups and Replication of MySQL |
|
Answer» CORRECT option is (b) $a[0] Easy EXPLANATION: If $a represents an ARRAY with numeric indices, its elements are ACCESSED as $x[0], $x[1], and so on. In general terms, each element at the position i is accessed and used as $a[i – 1]. |
|
| 46. |
The variable that returns code from operations that return true or false is _____________(a) $rc(b) $rv(c) $rows(d) $aryI got this question in a national level competition.I'd like to ask this question from General Preventative Maintenance topic in section Database Maintenance, Backups and Replication of MySQL |
|
Answer» CORRECT ANSWER is (a) $RC The explanation is: The Perl Non-handle variable ‘$rc’ RETURNS code from operations that return true or false. ‘$rv’ returns value from operations that return an integer. ‘$rows’ returns value from operations that return a row COUNT. |
|
| 47. |
What is the variable that is a handle to a database object?(a) $dbh(b) $sth(c) $fh(d) $hI got this question during an internship interview.The query is from General Preventative Maintenance topic in section Database Maintenance, Backups and Replication of MySQL |
|
Answer» The correct OPTION is (a) $dbh |
|
| 48. |
Which option suppresses output unless there are errors in the table?(a) –silent(b) –wild(c) –suppress(d) –nooutThe question was asked in an internship interview.This interesting question is from General Preventative Maintenance topic in section Database Maintenance, Backups and Replication of MySQL |
|
Answer» Correct CHOICE is (a) –silent |
|
| 49. |
Under which option are index changes not flushed until tables close?(a) –delay-write-key(b) –delay-key-write(c) –write-key-delay(d) –key-write-delayThe question was asked in exam.Asked question is from General Preventative Maintenance topic in division Database Maintenance, Backups and Replication of MySQL |
|
Answer» Right choice is (b) –delay-key-write |
|
| 50. |
What attempts auto recovery based on the contents of its serial log?(a) MyISAM(b) InnoDB(c) Falcon(d) TRANSACTIONThe question was posed to me during an online interview.I need to ask this question from General Preventative Maintenance topic in division Database Maintenance, Backups and Replication of MySQL |
|
Answer» Right CHOICE is (c) Falcon |
|