exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 2 question 30 discussion

Actual exam question from Microsoft's AZ-400
Question #: 30
Topic #: 2
[All AZ-400 Questions]

You build an iOS app.
You receive crash reports from Crashlytics.
You need to capture the following data:
✑ Crash-free users
✑ Custom events
✑ Breadcrumbs
What should you do?

  • A. Configure the xcworkspace file in the project
  • B. Add the GoogleAnalytics pod to the app.
  • C. Configure the Crashlytics pod in the app.
  • D. Import the Firebase module to UIApplicationDelegate.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
1sadad
Highly Voted 1 year ago
Why is this question on AZ400?
upvoted 26 times
...
pdk88
Highly Voted 2 years, 7 months ago
Selected Answer: D
If you're not seeing crash-free users, breadcrumb logs, and/or velocity alerts, we recommend checking your app's configuration for Google Analytics. [...] In addition to the Firebase Crashlytics SDK, make sure that you've added the Firebase SDK for Google Analytics to your app (iOS+ | Android). (https://firebase.google.com/docs/crashlytics/troubleshooting?platform=ios#missing-analytics-related-features) To configure the Firebase Crashlytics SDK: [...]Next, configure the Firebase module [...] Import the Firebase module in your App struct or UIApplicationDelegate (https://firebase.google.com/docs/crashlytics/get-started?platform=ios#add-sdk) Given answer D is correct.
upvoted 17 times
...
DKM
Most Recent 1 month, 3 weeks ago
Selected Answer: D
import UIKit import Firebase @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { FirebaseApp.configure() return true } } class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Log a custom event Analytics.logEvent("screen_view", parameters: [ "screen_name": "Home" ]) // Log a breadcrumb Crashlytics.crashlytics().log("Home screen loaded") } }
upvoted 1 times
...
Mousavi
2 months, 3 weeks ago
Selected Answer: D
Crashlytics is part of Firebase and provides crash reporting, crash-free users data, and breadcrumbs for debugging. To capture all three required metrics (Crash-free users, Custom events, and Breadcrumbs), you need to integrate Firebase into your iOS app.
upvoted 1 times
...
Akay111
3 months, 2 weeks ago
Selected Answer: C
To capture crash-free users, custom events, and breadcrumbs in your iOS app using Crashlytics, you should: C. Configure the Crashlytics pod in the app. This option ensures that you properly set up Crashlytics, which is part of Firebase, to track crashes, user engagement, and custom events. You may also need to import the Firebase module in your UIApplicationDelegate, but the key action is configuring Crashlytics.
upvoted 1 times
Freyr
3 months, 1 week ago
D is the correct answer. The question specifically asks about capturing: Crash-free users Custom events Breadcrumbs From Firebase's official documentation: These features require proper Firebase initialization They specifically need Google Analytics integration within Firebase For iOS apps, this is achieved by importing and initializing the Firebase module in UIApplicationDelegate Why other answers are incorrect: A (xcworkspace): Just a workspace configuration file B (GoogleAnalytics pod): References outdated approach; Firebase Analytics is now used C (Crashlytics pod): While Crashlytics is needed, pod configuration alone isn't sufficient Important context: The question states "you receive crash reports" indicating Crashlytics is already working The focus is on capturing additional analytics data.
upvoted 1 times
...
...
Morca
4 months, 1 week ago
Selected Answer: D
https://firebase.google.com/docs/ios/setup#initialize-firebase
upvoted 1 times
...
Dankho
4 months, 3 weeks ago
Selected Answer: C
While integrating Firebase is part of setting up Crashlytics, this action alone does not configure Crashlytics for capturing crash data, custom events, or breadcrumbs. You need to specifically configure the Crashlytics pod
upvoted 1 times
...
TyrellKP13
5 months, 3 weeks ago
The key to the question is "you are receiving crash reports" not setting it up, so the correct answer is D.
upvoted 1 times
...
sondrex
10 months ago
To capture the required data (crash-free users, custom events, breadcrumbs) in your iOS app using Crashlytics, you need to configure the Crashlytics pod in your app.
upvoted 1 times
...
Pavlo
1 year ago
C. Configure the Crashlytics pod in the app. Crashlytics is a crash reporting tool provided by Firebase, which captures crash reports and additional data such as crash-free users, custom events, and breadcrumbs. By configuring the Crashlytics pod in your iOS app, you can integrate Crashlytics into your project, allowing it to capture crash reports and the specified data points. This integration typically involves adding the Crashlytics pod to your project's Podfile, installing the pod dependencies, and configuring Crashlytics initialization in your AppDelegate file
upvoted 2 times
...
ozbonny
1 year, 2 months ago
Selected Answer: D
maybe D
upvoted 1 times
...
ghabool
1 year, 7 months ago
I choose B This is because Google Analytics is a tool that helps you measure user behavior and satisfaction in your app, and it integrates with Firebase Crashlytics to provide features like crash-free users, custom events, and breadcrumbs1. You need to install CocoaPods dependency Manager
upvoted 1 times
...
Sukon_Desknot
1 year, 8 months ago
Selected Answer: C
the ans is C By configuring the Crashlytics pod and integrating it with Firebase in your iOS app, you'll be able to capture crash-free users, custom events, and breadcrumbs effectively. Option B (Add the GoogleAnalytics pod) and Option D (Import the Firebase module to UIApplicationDelegate) are not directly related to capturing crash data and custom events using Crashlytics, so they are not the correct choices for achieving the stated requirements
upvoted 3 times
...
ieboaix
1 year, 8 months ago
D. https://firebase.google.com/docs/crashlytics/get-started?platform=ios Before you begin If you haven't already, add Firebase to your Apple project. If you don't have an Apple app, you can download a sample app. Recommended: To get features like crash-free users, breadcrumb logs, and velocity alerts, you need to enable Google Analytics in your Firebase project. All Apple platforms supported by Crashlytics (except watchOS) can take advantage of these features from Google Analytics. Note that you need SDK v8.9.0+ for macOS and tvOS apps. If your existing Firebase project doesn't have Google Analytics enabled, you can enable Google Analytics from the Integrations tab of your settings > Project settings in the Firebase console. If you're creating a new Firebase project, enable Google Analytics during the project creation workflow.
upvoted 1 times
...
yana_b
1 year, 8 months ago
Selected Answer: D
Following the link provided by pdk88 I would rather go for answer D.
upvoted 1 times
...
zellck
1 year, 10 months ago
Selected Answer: D
D is the answer. https://firebase.google.com/docs/crashlytics/get-started?platform=ios
upvoted 4 times
...
thowell
2 years ago
Selected Answer: C
The correct answer is C. Configure the Crashlytics pod in the app. From ChatGPT: To capture the required data (Crash-free users, Custom events, Breadcrumbs), you need to integrate Crashlytics into your iOS app. You can do this by configuring the Crashlytics pod in the app. The Crashlytics SDK is part of the Firebase SDK, so you will also need to add the Firebase pod to your project. A is incorrect because the xcworkspace file is a workspace configuration file and not related to Crashlytics integration. B is incorrect because Google Analytics is a different SDK used for tracking user behavior and analytics, and not related to Crashlytics integration. D is also incorrect because while importing the Firebase module is required for integrating Firebase in your app, it alone is not sufficient to enable Crashlytics. You still need to configure the Crashlytics pod in the app.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago