Question 275 of 500
Deploying applicationseasyMultiple SelectObjective-mapped

Quick Answer

The answer is `entrypoint` and `runtime`. The `runtime` element in app.yaml for App Engine flexible environment declares the language runtime, such as `nodejs`, which ensures the correct base environment is provisioned for your application. The `entrypoint` element then defines the exact command to launch your app, allowing you to chain custom dependency installation and startup scripts—for example, using `entrypoint: npm install && npm start`—which directly addresses the need to install custom dependencies and run initialization logic before the main process begins. On the Google Professional Cloud Developer exam, this tests your understanding of how the flexible environment differs from the standard environment, where `entrypoint` is not configurable; a common trap is confusing `entrypoint` with `runtime` or assuming dependencies are handled automatically. Remember the memory tip: “Runtime picks the stage, entrypoint writes the script”—the runtime sets the language foundation, while the entrypoint orchestrates the custom startup sequence.

PCD Deploying applications Practice Question

This PCD practice question tests your understanding of deploying applications. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A developer is deploying a Node.js application to App Engine flexible environment. They need to install custom dependencies and run startup scripts. Which two configuration elements should they define in the app.yaml? (Choose two.)

Question 1easymulti select
Full question →

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

entrypoint

A is correct because the `entrypoint` element in app.yaml for App Engine flexible environment specifies the command to run your application, allowing you to execute custom startup scripts and install dependencies before the main process starts. This is essential for Node.js apps that require custom build steps or runtime initialization beyond the default `npm start`.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • entrypoint

    Why this is correct

    Specifies the command to start the application.

    Related concept

    Read the scenario before looking for a memorised answer.

  • runtime

    Why this is correct

    Specifies the runtime environment (e.g., nodejs12).

    Related concept

    Read the scenario before looking for a memorised answer.

  • env_variables

    Why it's wrong here

    Environment variables are for configuration, not for custom dependencies or startup scripts.

  • manual_scaling

    Why it's wrong here

    Manual scaling is about instance count, not startup configuration.

  • network

    Why it's wrong here

    Network configuration is for VPC networking, not startup scripts.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Cisco often tests the misconception that `env_variables` or `manual_scaling` can handle startup scripts, but only `entrypoint` (and `runtime` to define the base environment) directly control the command executed at container startup.

Detailed technical explanation

How to think about this question

Under the hood, App Engine flexible environment runs your application inside a Docker container based on the specified runtime. The `entrypoint` command is executed as the container's main process (PID 1), so you can chain commands like `npm install && npm run build && node app.js` to handle custom dependencies and startup logic. A subtle behavior: if you omit `entrypoint`, App Engine uses a default command (e.g., `npm start`), which may not include your custom scripts, leading to missing dependencies or initialization failures.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A healthcare organisation deploys an application with a public-facing web tier and a private database tier. The database subnet has no public IP and only accepts connections from the web tier's security group. Questions like this test whether you can design cloud network isolation using VNets/VPCs, subnets, and security group rules.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related PCD practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free PCD practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this PCD question test?

Deploying applications — This question tests Deploying applications — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: entrypoint — A is correct because the `entrypoint` element in app.yaml for App Engine flexible environment specifies the command to run your application, allowing you to execute custom startup scripts and install dependencies before the main process starts. This is essential for Node.js apps that require custom build steps or runtime initialization beyond the default `npm start`.

What should I do if I get this PCD question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 25, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This PCD practice question is part of Courseiva's free Google Cloud 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 PCD exam.