Oracle MySQL 8.0 Database Administrator (1Z0-908) Exam-style mock test
Oracle MySQL 8.0 Database Administrator (1Z0-908) Practice Exams|Practice test
Full explanations
Exam format
Pass line 65%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · MySQL Architecture & Installation
A B2B SaaS company runs its tenant-billing application against a single MySQL 8.0 instance. An engineer is diagramming how application servers reach the data. Which statement best describes the fundamental role of the mysqld process in this architecture?
✓It is the server daemon that accepts client connections, parses and optimizes SQL, and manages the storage engines on behalf of all connected sessions.
Correct. mysqld is the core server daemon: it listens for client connections, parses, optimizes, and executes SQL, and coordinates the pluggable storage engines for every session.
・It is a client-side connection pooler that caches query results locally so each application server avoids repeated round trips to the database.
Incorrect. mysqld runs on the server side and is not a client-side pooler; connection pooling is handled by the application or middleware, not by the daemon caching results locally.
・It is a background replication thread that only starts when the instance is configured as a replica of another server.
Incorrect. Replication threads are features within the server, but mysqld itself is the overall server process and runs regardless of whether replication is configured.
・It is a command-line utility that administrators run manually to import and export logical dumps of the databases.
Incorrect. Logical dump import/export is done by tools such as mysqldump or mysql client, not by the mysqld daemon, which is the long-running server process.
Explanation
mysqld is the MySQL server process that accepts connections and executes SQL via the storage engines; the other options describe clients, tools, or sub-features rather than the daemon's central role.
Example2 · Configuration & Security
A DBA at a B2B SaaS company needs to raise max_connections on a production MySQL 8.0 instance so the value survives the next planned restart, but they are not permitted to open a client session right now. Which approach meets both the persistence and the no-session requirement?
・Run SET GLOBAL max_connections during the next maintenance window after the restart
Incorrect. SET GLOBAL changes runtime only and is lost on restart, and it requires an active client session, so it fails both stated requirements.
✓Set the max_connections value under the [mysqld] section of an option file read at startup
Correct. Placing max_connections in the [mysqld] section of a startup option file persists the value across restarts and needs no client session, satisfying both requirements.
・Execute SET PERSIST_ONLY max_connections from the mysql client during business hours
Incorrect. SET PERSIST_ONLY does persist without changing the running value, but it still requires an open client session, which the scenario prohibits.
・Issue SET PERSIST max_connections now so it applies live and is also retained
Incorrect. SET PERSIST both applies live and persists, yet it must be executed from a connected client session, which is not allowed here.
Explanation
Only editing the [mysqld] section of an option file persists a variable across restart without opening any client session; all SET variants require a session.
Example3 · Backup, Recovery & Replication
A B2B SaaS billing platform took a full logical backup with mysqldump at 02:00 using --single-transaction. A bad migration ran at 10:15 and corrupted the invoices table. The DBA must recover the database to the state just before 10:15. Which approach restores the data correctly?
✓Restore the 02:00 dump, then replay the binary logs from the dump's recorded position up to just before the 10:15 statement using mysqlbinlog
Correct. The dump provides the baseline, and mysqlbinlog replays binary log events from the dump's position up to a stop point just before the bad statement, achieving point-in-time recovery.
・Restore only the 02:00 dump file because --single-transaction already captured every change committed later in the day
Incorrect. --single-transaction only ensures a consistent snapshot at backup time; it does not record changes made after 02:00.
・Replay all binary logs from server startup with mysqlbinlog and skip restoring the 02:00 dump file entirely
Incorrect. Binary logs from startup may be purged and are not a substitute for the baseline dump; replaying from startup is incorrect and may be impossible.
・Restore the 02:00 dump, then use FLUSH LOGS so the server automatically reapplies the day's transactions from the relay log
Incorrect. FLUSH LOGS merely rotates the binary log and never auto-replays transactions, and relay logs exist only on replicas.
Explanation
Point-in-time recovery combines a consistent backup baseline with binary log replay up to a chosen stop position using mysqlbinlog.
Example4 · Performance Tuning & Monitoring
A DBA at a healthcare services firm must find the SQL statements consuming the most total execution time across the patient-billing database since the server last started. Which Performance Schema source gives this directly without the DBA re-running any workload?
✓Query the events_statements_summary_by_digest table and order the rows by the SUM_TIMER_WAIT column in descending order
Correct. events_statements_summary_by_digest aggregates normalized statements over time, and SUM_TIMER_WAIT is the accumulated execution time, so ordering by it ranks the costliest statements.
・Query the events_statements_current table, which keeps the most recent statement per thread with its timing
Incorrect. events_statements_current only holds the in-flight or most recent statement per thread, so it cannot reveal cumulative cost across the whole workload.
・Enable the general query log and parse the written file for the statements that appear most often
Incorrect. The general query log records statements but carries no timing or aggregation, making it a poor and expensive way to rank by total time.
・Read the threads table and sort by the PROCESSLIST_TIME column to see long-running sessions
Incorrect. The threads table shows active session duration, not aggregated statement execution time across the server's uptime.
Explanation
The digest summary table is the canonical Performance Schema source for ranking statements by accumulated execution time via SUM_TIMER_WAIT.
Example5 · High Availability & InnoDB Cluster
A healthcare services firm is designing a three-server MySQL 8.0 deployment for its patient-records application and wants a self-healing high-availability layer. An architect explains that MySQL InnoDB Cluster is built from three cooperating technologies. Which combination of components forms a standard InnoDB Cluster?
✓Group Replication provides the replicated data layer, MySQL Router handles transparent application routing, and MySQL Shell performs setup and administration
Correct. An InnoDB Cluster is the integration of Group Replication for the data layer, MySQL Router for transparent connection routing, and MySQL Shell for provisioning and administration.
・Semisynchronous replication keeps replicas current, MySQL Router distributes reads, and the Enterprise Monitor agent manages failover decisions automatically
Incorrect. InnoDB Cluster relies on Group Replication, not plain semisynchronous replication, and Enterprise Monitor is not the failover mechanism; Group Replication itself elects the primary.
・Asynchronous replication copies data, a load balancer forwards client traffic, and mysqladmin scripts promote a new primary when needed
Incorrect. InnoDB Cluster does not use asynchronous replication, an external load balancer, or mysqladmin promotion scripts as its core building blocks.
・Group Replication copies data, keepalived moves a virtual IP on failure, and cron jobs validate the cluster membership each minute
Incorrect. While Group Replication is correct, InnoDB Cluster uses MySQL Router rather than keepalived virtual IPs, and membership is managed by the group, not cron.
Explanation
MySQL InnoDB Cluster is the combination of three MySQL technologies working together: Group Replication (data), MySQL Router (routing), and MySQL Shell (administration).
Example6 · MySQL Architecture & Installation
A DBA at a healthcare services firm is explaining to new staff how MySQL 8.0 processes an incoming SQL statement from the patient-records application. In the standard MySQL server architecture, which layer is responsible for authenticating the connection, parsing the SQL, and optimizing the query before any storage engine is invoked?
✓The SQL layer, which handles connection management, parsing, optimization, and caching before passing row operations to a pluggable storage engine
Correct. The SQL layer (server layer) handles connection handling, authentication, parsing, optimization, and query execution planning, then delegates actual data access to the pluggable storage engine.
・The storage engine layer, which manages buffering, locking, and the parsing of all incoming SQL statements for each session
Incorrect. The storage engine layer manages physical data storage, buffering, and locking, but parsing and optimization are done above it in the SQL layer.
・The replication layer, which intercepts and validates every client statement before it reaches the optimizer component
Incorrect. Replication is built on the SQL/log layer but does not authenticate or parse arbitrary client statements before the optimizer runs.
・The operating system file layer, which compiles each query and resolves the execution plan for the session
Incorrect. The file system stores data files but performs no parsing, authentication, or optimization of SQL statements.
Explanation
MySQL separates the upper SQL layer (connection, parse, optimize, execute) from the pluggable storage engine layer (physical access), which is the defining feature of its architecture.
Example7 · MySQL Architecture & Installation
The DBA at UrbanThread, an online apparel retailer, is explaining how a customer-facing PHP application reaches order data stored in MySQL 8.0. Which statement best describes the role of mysqld in this client/server design?
✓mysqld is the server daemon that listens for connections, parses and optimizes SQL, and returns result sets to each connecting client
Correct. mysqld is the central server process that accepts client connections, parses and optimizes statements, executes them through the storage engines, and sends results back.
・mysqld is a command-line client bundled with the server that administrators run locally to execute ad-hoc SQL statements
Incorrect. The interactive command-line client is mysql, not mysqld; mysqld is the server that clients connect to.
・mysqld is a background utility that only rotates binary logs and flushes dirty pages, leaving query handling to a separate process
Incorrect. Log rotation and page flushing are internal threads inside mysqld, not its entire function; mysqld performs full query handling.
・mysqld is a lightweight connector library linked into the PHP application to translate function calls into the MySQL wire protocol
Incorrect. The connector/library that the application links against is the client side of the protocol, whereas mysqld is the server side it connects to.
Explanation
In the client/server model, mysqld is the server daemon that handles connections, SQL parsing, optimization, and result delivery for all clients.
Example8 · MySQL Architecture & Installation
During a review of slow checkout queries at UrbanThread, a junior DBA asks what the MySQL 8.0 optimizer actually does when a SELECT on the orders table arrives. Which description is most accurate?
・It rewrites the SQL text into a standardized uppercase form and forwards that normalized text directly to the storage engine for execution
Incorrect. Uppercasing SQL text is not what the optimizer does; it builds and compares execution plans rather than normalizing text for the engine.
✓It evaluates candidate execution plans and chooses the one with the lowest estimated cost based on index and table statistics
Correct. The optimizer estimates the cost of alternative plans using statistics and selects the lowest-cost plan to execute.
・It verifies that the connecting user holds the privileges required for every table referenced before any plan is generated or chosen
Incorrect. Privilege checking is handled during parsing and access control, which is a separate phase from cost-based optimization.
・It caches the final result rows so that identical later queries skip execution and return the previously stored result set
Incorrect. The query cache was removed in MySQL 8.0, so result caching is not part of optimizer behavior.
Explanation
The MySQL optimizer uses cost estimates derived from statistics to pick the cheapest execution plan among alternatives.
Example9 · MySQL Architecture & Installation
UrbanThread stores transactional order and payment records in MySQL 8.0 and requires row-level locking with ACID crash recovery. The DBA must confirm the appropriate default storage engine. Which statement is correct about InnoDB in this context?
✓InnoDB is the default engine and supports transactions, foreign keys, and row-level locking suited to order processing
Correct. InnoDB is the default storage engine in MySQL 8.0 and provides transactions, foreign keys, and row-level locking appropriate for order processing.
・InnoDB is an optional engine that must be compiled in separately before it can be chosen for transactional retail tables
Incorrect. InnoDB is built in and enabled by default; it does not require separate compilation to be used.
・InnoDB stores all table data only in memory and therefore cannot survive a server restart without reloading from files
Incorrect. InnoDB persists data to disk through its tablespaces and redo logs, so data survives restarts; the in-memory-only engine is MEMORY.
・InnoDB enforces table-level locking for every write, which the DBA should accept for high-concurrency checkout workloads
Incorrect. InnoDB uses row-level locking, not table-level locking, which is one reason it suits high-concurrency workloads.
Explanation
InnoDB, the MySQL 8.0 default engine, offers transactions, foreign keys, and row-level locking with durable on-disk storage, making it ideal for transactional retail data.
Example10 · MySQL Architecture & Installation
A DBA at a financial services firm is explaining to a new auditor how an application connects to the MySQL 8.0 server that holds the trading ledger. Which statement best describes MySQL's client-server connection model?
✓Each client connection is handled by a dedicated thread inside the single mysqld server process, and the connection stays open until the client disconnects or times out.
Correct. MySQL uses a threaded connection model where each client connection is serviced by its own thread within the single mysqld process for the life of the session.
・Each client connection launches a separate mysqld child process that is terminated immediately after the query result has been returned to that client.
Incorrect. MySQL does not fork a new server process per connection; it uses threads inside one mysqld process, and the connection persists beyond a single query.
・All client connections share one operating-system thread, which processes every statement strictly one at a time in a global serial queue.
Incorrect. Connections are not serialized onto one shared thread; separate threads allow concurrent processing of statements from different clients.
・Each client connection is passed to an external proxy daemon that forwards the parsed query to mysqld over a shared memory segment.
Incorrect. No external proxy daemon is required; the server itself accepts connections directly and no shared memory handoff to a separate daemon occurs by default.
Explanation
MySQL's architecture assigns one thread per client connection inside the single mysqld process, enabling concurrency without per-connection OS processes.
Example11 · MySQL Architecture & Installation
During a design review for a new payments table, a DBA explains why MySQL separates the SQL layer from the storage layer. Which statement correctly describes the pluggable storage engine architecture in MySQL 8.0?
✓The SQL layer handles parsing, optimization, and privilege checks, while a pluggable storage engine such as InnoDB manages how rows are physically stored and retrieved.
Correct. MySQL's SQL layer handles parsing, optimization, and security, and delegates physical storage and retrieval to a pluggable engine like InnoDB.
・The storage engine parses and optimizes each SQL statement before passing the finished execution plan up to the SQL layer for final privilege verification.
Incorrect. Parsing and optimization occur in the SQL layer, not the storage engine; the engine executes the resulting row operations.
・The SQL layer and the storage engine are compiled into a single fixed unit, so changing the storage engine requires rebuilding the entire server binary.
Incorrect. Storage engines are pluggable modules, so swapping engines does not require recompiling the server.
・Each table must use the same storage engine as every other table in the schema because the engine is configured globally for the instance.
Incorrect. Different tables can use different storage engines; the engine is chosen per table, not globally enforced.
Explanation
The pluggable storage engine design lets the shared SQL layer work with multiple engines, with InnoDB as the default handling physical row storage.
Example12 · MySQL Architecture & Installation
A DBA at a manufacturing distributor is explaining to new operators how the warehouse order-entry application talks to MySQL 8.0. The application opens a connection, runs queries, and receives result sets. Which statement best characterizes the MySQL architecture that enables this interaction?
・MySQL embeds the full query processor inside each application binary, so every client process compiles and optimizes SQL locally before writing data files directly on shared disk.
Incorrect. The query processor lives in the mysqld server, not embedded in each client binary, and clients never write data files directly on shared disk.
✓MySQL uses a multi-tier client-server model where clients send SQL over a connection and the server parses, optimizes, and executes it through a pluggable storage engine layer.
Correct. Clients send SQL to the mysqld server, which parses, optimizes, and executes statements and delegates storage operations to a pluggable storage engine such as InnoDB.
・MySQL requires every client to hold an exclusive table-level lock for the whole session, forcing the order-entry application to serialize all reads and writes end to end.
Incorrect. Clients do not hold exclusive table-level locks for entire sessions; InnoDB provides row-level locking and concurrent access for applications like order entry.
・MySQL runs each client query as an isolated operating-system service that bypasses the server daemon and accesses InnoDB tablespaces over the network.
Incorrect. Client queries are handled by the mysqld daemon, not as isolated OS services that bypass the server and reach tablespaces over the network.
Explanation
MySQL follows a client-server model: clients connect and submit SQL, the mysqld server parses, optimizes, and executes it, and storage engines such as InnoDB handle the actual data storage and retrieval.
Example13 · MySQL Architecture & Installation
The distributor's DBA needs a storage engine for the inventory and shipping tables that supports transactions, foreign keys, and crash recovery for concurrent warehouse updates. In MySQL 8.0, which engine is the default and satisfies all of these requirements?
・The MEMORY engine, which keeps all table data in RAM for maximum speed and supports full ACID transactions with automatic recovery after a server restart.
Incorrect. The MEMORY engine stores data in RAM and loses its contents on restart; it does not provide durable ACID transactions or crash recovery.
・The MyISAM engine, which offers table-level locking and non-transactional storage well suited to heavy concurrent order writes and foreign-key enforcement.
Incorrect. MyISAM is non-transactional, uses table-level locking, and does not enforce foreign keys, making it unsuitable for concurrent transactional order writes.
✓InnoDB, the default engine in MySQL 8.0, providing ACID transactions, row-level locking, foreign keys, and automatic crash recovery.
Correct. InnoDB is the MySQL 8.0 default engine and delivers ACID transactions, row-level locking, foreign-key enforcement, and automatic crash recovery.
・The CSV engine, which stores rows in comma-separated flat files and provides transactional integrity plus referential constraints for inventory data.
Incorrect. The CSV engine writes plain comma-separated files and supports neither transactions nor foreign keys, so it cannot protect inventory data integrity.
Explanation
InnoDB is the default storage engine in MySQL 8.0 and uniquely combines ACID transactions, row-level locking, foreign keys, and crash recovery required for concurrent transactional workloads.
Example14 · MySQL Architecture & Installation
A telecom operator's DBA is explaining to a new team member how a billing application talks to its MySQL 8.0 server. The application opens a TCP connection to port 3306 and issues SQL statements. Which statement best describes how the MySQL server handles this incoming client session?
・The connecting client spawns its own dedicated mysqld instance that lives only for the duration of the billing session and exits afterward
Incorrect. Clients never start their own mysqld; a single server process serves many clients, and no per-session server instance is created.
✓The mysqld server process accepts the connection and assigns the session to a thread that parses, optimizes, and executes each submitted statement
Correct. A single mysqld process listens for connections and handles each client session with a thread that parses, optimizes, and executes SQL.
・The server routes the request to a separate standalone parser daemon, which then forwards compiled plans back to the client over a second socket
Incorrect. There is no separate parser daemon; parsing and optimization happen inside mysqld itself, not in an external process.
・Each SQL statement is handled by a brand-new operating-system process that the kernel forks on demand for isolation between statements
Incorrect. MySQL uses a thread-per-connection model within one process, not a new OS process forked for every statement.
Explanation
MySQL follows a client-server model where one mysqld process listens on a port and services many concurrent clients, each handled by a thread that parses, optimizes, and executes statements.
Example15 · MySQL Architecture & Installation
A telecom operator stores session detail records in some tables that require ACID transactions and foreign keys, while other reporting tables are read-only snapshots. The DBA wants different tables to use different storage engines in the same database. How does MySQL 8.0 architecture make this possible?
✓Storage engines are pluggable and selectable per table, so the SQL layer can route each table's data operations to the chosen engine
Correct. MySQL separates the SQL layer from pluggable storage engines, and the ENGINE can be chosen per table so operations are routed accordingly.
・MySQL requires one engine per database, so the DBA must split the data into two separate databases to mix engine behaviors
Incorrect. Engines are chosen per table, not per database, so a single database can freely mix InnoDB, MyISAM, and others.
・The SQL layer rewrites queries internally so every table physically uses InnoDB regardless of the declared ENGINE clause
Incorrect. The server honors the declared ENGINE clause and does not silently force every table to InnoDB.
・Only the server startup configuration sets a single global engine, which then applies uniformly to every table that is created
Incorrect. The default_storage_engine setting only supplies a default; each table may override it with its own ENGINE clause.
Explanation
MySQL's pluggable storage engine architecture lets each table specify its engine, so transactional and non-transactional engines can coexist in one database.
▶ Try 10 free questions (graded)