1z0061 Oracle Database 12c: SQL Fundamentals Free Practice Test — 29 Questions

29 questions · Full explanations · No account required

Free
Question 1 of 29

Anya, a database administrator for a rapidly growing tech firm, is troubleshooting a critical performance bottleneck. A frequently executed SQL query, intended to list all employees assigned to active projects within their respective departments, is consistently exceeding its allocated execution time. The query joins the `Employees` table (with a composite primary key of `employee_id` and `hire_date`), the `Departments` table (primary key `department_id`), and the `Projects` table (composite primary key of `project_id` and `start_date`). The join conditions are `Employees.department_id = Departments.department_id` and `Employees.employee_id = Projects.assigned_employee_id`. The `Projects` table also contains a `status` column which is frequently filtered to \'Active\'. Given the database\'s significant volume of data, Anya suspects suboptimal indexing is contributing to the timeouts. Which of the following indexing strategies would most likely resolve the performance issue for this specific query, assuming no other relevant indexes exist?

Create a composite index on `Employees(employee_id, department_id)` and `Projects(assigned_employee_id)`, and a single-column index on `Departments(department_id)`.
Create a composite index on `Employees(hire_date, employee_id)`, a single-column index on `Departments(department_id)`, and a composite index on `Projects(start_date, project_id)`.
Create a single-column index on `Employees(employee_id)`, a single-column index on `Departments(department_id)`, and a composite index on `Projects(assigned_employee_id, status)`.
Create a composite index on `Employees(department_id, employee_id)`, a single-column index on `Departments(department_id)`, and a composite index on `Projects(assigned_employee_id, status)`.

About the 1z0061 Oracle Database 12c: SQL Fundamentals Certification

These free practice questions are designed to help you assess your readiness for the 1z0061 Oracle Database 12c: SQL Fundamentals exam by Other. Each question comes with a detailed explanation to reinforce the correct concept. For a complete exam preparation experience with hundreds of questions, spaced-repetition study tools, and full exam simulations, explore our premium access.