Serverless Computing using Cloud Functions – Developer I Quiz Answer

Get Serverless Computing using Cloud Functions – Developer I Quiz Answer

This course is designed to teach you serverless computing essentials which include how to develop serverless applications composed of loosely-coupled, microservice-like functions. You will get the opportunity to learn more about serverless programming and deployment models as well as its top use cases and design patterns. Additionally, you will be guided through several labs that demonstrate how to implement essential concepts including how to create, deploy, and invoke cloud-based functions, connect them to event sources for automation and expose them as web-accessible endpoints and APIs.

Enroll on Cognitive Class

Module 1 – Serverless essentials

Question: What characteristics of serverless computing contribute to its name?

Note: Make sure you select all the correct options; there may be more than one!

  • Developers can run backend code to access databases without using servers.
  • Serverless computing scales inherently to incoming events.
  • Serverless computing does not use servers.
  • Server management decisions are hidden from the developer.
  • Serverless developers only need to configure the service framework for their chosen language.

Question: Serverless computing is a specific technology with a developed set of standards and practices.

  • False
  • True

Question: Serverless computing requires the developer to allocate servers and machine resources.

  • False
  • True

Question: Serverless computing scales inherently and executes stateless code in response to events.

  • False
  • True

Question: Isabelle decided to use serverless computing for a project that crops photos automatically when added to cloud storage. How would you critique her choice?

  • Serverless is a great choice because it can flexibly react to incoming photos and crop them as needed.
  • Serverless won’t work well here because it depends too much on how often customers will be uploading photos.
  • Serverless may work well, but Isabelle will have to spend some time configuring servers to handle the infrequent uploads.
  • Serverless is a great choice here because it allows Isabelle to manage the allocation of machine resources.

Question: You need to develop a project that is as cost-effective as possible. For which reasons would you pick serverless?

Note: Make sure you select all the correct options; there may be more than one!

  • Serverless outsourcing leads to less infrastructure, operational, and development costs.
  • Serverless only charges for the time when code is executing.
  • Serverless applications can run in low-cost, pre-allocated capacity you can purchase in advance.

Question: Long running and non-separable tasks are types of tasks that typically work well in a serverless environment.

  • False
  • True

Question: You are given the following graph of usage for an application you are developing. Which of the following is a correct conclusion of the graph?

  • The usage is mostly sporadic, so serverless computing is a bad fit for this usage case.
  • The usage is mostly sporadic, so serverless computing is a good fit for this usage case.
  • The usage is mostly constant, so serverless computing would be a bad fit for this usage case.
  • The usage is mostly constant, so serverless computing would be a good fit for this usage case.

Module 2 – Create and invoke actions

Question: If you were to execute the following command which invokes a Hello World action:

ibmcloud fn action invoke hello

it would return with an activation ID and an HTTP response generated by the function.

  • False
  • True

Question: When invoking actions, parameter values can be any valid JSON value, including nested objects.

  • False
  • True

Question: It is not possible to monitor activation logs in real time using the command line.

  • False
  • True

Question: It is impossible to perform a blocking invocation on an asynchronous action.

  • False
  • True

Question: If an action in the middle of a sequence fails, the platform will return the error after the last action in the sequence is invoked.

  • False
  • True

Module 3 – Manage actions with packages

Question: You can invoke actions in public packages as if they were normal actions.

  • False
  • True

Question: You can provide default parameters to an action in a public package just as you would a normal action.

  • False
  • True

Question: If you bind a parameter value to a package, that value cannot be overridden on invocation.

  • False
  • True

Question: After creating a custom package as private, you can update the package to make it public.

  • False
  • True

Module 4 – Connect actions to event sources

Question: What is a trigger?

  • An API that invokes a function
  • A network connection between an event source and a function
  • A named channel for a class of events
  • Event data that is sent to functions as key-value pairs

Question: What is the purpose of a rule?

  • associates multiple triggers with a single action
  • associates a single trigger with a single action
  • associates a single trigger with multiple actions

Question: Rules allow you to define conditional logic that controls if an action gets invoked based upon event data.

  • True
  • False

Question: Multiple actions can be fired from a single trigger.

  • Correct
  • Incorrect

Module 5 – Expose actions as APIS

Question: Any action can be made accessible on the web by simply setting the flag --web to true.

  • False
  • True

Question: Functions that are web actions need to parse the raw HTTP request header to obtain query parameters.

  • False
  • True

Question: Which command would you use to retrieve the HTTP endpoint for a web action?

  • ibmcloud fn api get <action_name> –url
  • ibmcloud fn action get <action_name> –url
  • ibmcloud fn api get <action_name> –http
  • ibmcloud fn action get <action_name> –http 

Question: If you have a web action that returns a JSON object, the caller must append .json to the web action’s URL to get a successful response.

  • False
  • True

Module 6 – Use the Web User Interface (Web UI)

Question: When using the ICF Web UI, you can accomplish almost everything you can using the CLI.

  • False
  • True

Question: The ICF Web UI provides access to logs and action metrics.

  • False
  • True

Final Exam

Question: ICF scales your actions automatically only in response to event triggers.

  • False
  • True

Question: You are given the following graph of usage for an application you are developing. Which of the following is a correct conclusion of the graph?

  • The usage is mostly sporadic, so serverless computing is a bad fit for this usage case.
  • The usage is mostly sporadic, so serverless computing is a good fit for this usage case.
  • The usage is mostly constant, so serverless computing would be a bad fit for this usage case.
  • The usage is mostly constant, so serverless computing would be a good fit for this usage case.

Question: Tobias is trying to create an image recognition model for object analysis using large amounts of raw image data. Is serverless a good choice in helping with these tasks?

  • Serverless may be a good choice in both dividing the data into manageable pieces as well as analyzing the data in parallel.
  • Serverless won’t work well here because processing the large amount of raw data would be too costly.
  • Serverless is not a good choice because Tobias would need dedicated servers that have the processing power for analytics.
  • Serverless is a great choice here, but Tobias will have to configure his account to handle the amount of processing needed.

Question: Actions cannot directly invoke other actions without using a sequence.

  • False
  • True

Question: You are able to pass parameters when invoking an action using the command line directly or indirectly using a parameter file.

  • False
  • True

Question: If you have many packages of actions, you can better organize them by creating a package that contains several similar packages.

  • False
  • True

Question: Multiple triggers can be configured to fire the same action.

  • Correct
  • Incorrect

Question: It may be possible to construct a website entirely using serverless actions.

  • False
  • True

Question: If you wish to monitor your action invocations, you need to use the Web UI.

  • False
  • True
Conclusion:

We hope you know the correct answers to Serverless Computing using Cloud Functions – Developer I If Queslers helped you to find out the correct answers then make sure to bookmark our site for more Course Quiz Answers.

If the options are not the same then make sure to let us know by leaving it in the comments below.

Course Review:

In our experience, we suggest you enroll in this and gain some new skills from Professionals completely free and we assure you will be worth it.

This course is available on Cognitive Class for free, if you are stuck anywhere between quiz or graded assessment quiz, just visit Queslers to get all Quiz Answers and Coding Solutions.

More Courses Quiz Answers >>

Building Cloud Native and Multicloud Applications Quiz Answers

Accelerating Deep Learning with GPUs Quiz Answers

Leave a Reply

Your email address will not be published.