1Z0-1072-26 Compute Practice Question
You are troubleshooting a function timeout in OCI Functions. You notice that the function takes 30 seconds to initialize database connections on every cold start. How can you optimize this initialization overhead?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Place the database connection initialization code outside the main function handler method so it executes during container warm start.
To avoid connection overhead on every cold start, database connection pools or initialization logic can be placed outside the function handler method so that container warm starts reuse existing connections.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Enable instance pool autoscaling on the function application.
Why it's wrong here
OCI Functions manage their own scaling automatically and do not use compute instance pools.
- ✓
Place the database connection initialization code outside the main function handler method so it executes during container warm start.
Why this is correct
Global scope initialization runs once when the container spins up (cold start) and is reused for subsequent invocations (warm starts).
- ✗
Increase the function memory allocation to 32 GB.
Why it's wrong here
While memory increases CPU allocation, connection establishment logic should be placed in global scope rather than inside the handler.
- ✗
Migrate the function container to an OKE cluster DaemonSet.
Why it's wrong here
Migrating to Kubernetes is an architectural overcomplication compared to optimizing code scope.
About these practice questions
This 1Z0-1072-26 question is part of Courseiva's 524-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Oracle exam blueprint
This 1Z0-1072-26 practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 1Z0-1072-26 exam.